<label><select name="contractId" id="contractId" class="contractId" onchange="contractHide();" class="text-field">
<option value="">Select Contract</option>
{if $contrctAjArray|@count > 0}
  {html_options values=$contrctAjArray.contractId output=$contrctAjArray.contractNo}
{/if}
</select></label>